package com.rw.action.back;

import com.rw.service.ItemService;
import com.rw.table.Item;

public class GetModifyItemAction {
	private long itemId;
	private Item item;
	private long indexId;
	private int nowPage;
	private ItemService itemService;
	
	public int getNowPage() {
		return nowPage;
	}
	public void setNowPage(int nowPage) {
		this.nowPage = nowPage;
	}
	public long getIndexId() {
		return indexId;
	}
	public void setIndexId(long indexId) {
		this.indexId = indexId;
	}
	public long getItemId() {
		return itemId;
	}
	public void setItemId(long itemId) {
		this.itemId = itemId;
	}
	public Item getItem() {
		return item;
	}
	public void setItem(Item item) {
		this.item = item;
	}
	public ItemService getItemService() {
		return itemService;
	}
	public void setItemService(ItemService itemService) {
		this.itemService = itemService;
	}
	
	public String execute(){
		this.setItem(this.itemService.get(itemId));
		this.setIndexId(this.getItem().getItemIndexId());
		return "get_ok";
	}
}
